/* GUI CONVERTED from mfptcgb.i (converter v1.76) Thu Apr 11 05:25:27 2002 */
/* mfptcgb.i - CHANGE PART NUMBER                                             */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                        */
/* All rights reserved worldwide.  This is an unpublished work.               */
/* $Revision: 1.6 $                                                           */
/*V8:ConvertMode=Maintenance                                                  */
/* REVISION: 7.3      LAST MODIFIED: 03/31/93   BY: pma *G900*                */
/*                                   03/15/95   by: srk *G0GN*                */
/* REVISION: 8.6      LAST MODIFIED: 05/20/98   BY: *K1Q4* Alfred Tan         */
/* REVISION: 9.1      LAST MODIFIED: 08/13/00   BY: *N0KR* Mark Brown         */
/* Old ECO marker removed, but no ECO header exists *F0PN*                    */
/* $Revision: 1.6 $    BY: Jean Miller           DATE: 04/08/02  ECO: *P058*  */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/

{gpfile.i &file_name='{1}'}

if file_found then do:

   find first {1} no-lock where {2} = {3} no-error.

   if not batchrun and available {1}
   then do:
      hide message no-pause.
           
      message " ".
      message " ".
        
      /* "Checking " + _desc + " file for affected parts.*/
      {pxmsg.i &MSGNUM=211 &ERRORLEVEL=1 &MSGARG1=file_desc}
   end.

   {gprun.i ""gpistran.p"" "(input 1, input file_desc)"}
/*GUI*/ if global-beam-me-up then undo, leave.


   repeat:
      find first {1} exclusive-lock where {2} = {3} no-error.
      if available {1} then do i = 1 to 100:
         if available {1} then do:
            {2} = {4}.
            accum "" (count).
            find next {1} exclusive-lock where {2} = {3} no-error.
            if not available {1} then leave.
         end.
      end.
      else leave.
   end.
end.
